<% @project_tickets.each do |project| %> <h2><%= project.Docs %></h2>
<table class="table">
	<thead>
		<tr>
			<th>Projekt namn</th>
			<th>StartDatum</th>
			<th>Slutdatum</th>
			<th>Status</th>
			<th>Alternativ</th>
		</tr>
	</thead>
	<tbody>
		<% project.tickets.each do |ticket| %>
		<tr>
			<td><%= ticket.TypTic %></td>
			<td><%= ticket.start%></td>
			<td><%= ticket.stop %></td>
			<td><%= ticket.status.statustype %></td>
			<td><%= link_to 'X', ticket, :confirm => "Are you sure you want to delete ?", :method => :delete, :class => "dev_projects" %> ||
			<%= link_to 'edit', :id => ticket.id, :controller => :tickets, :action => "edit" %></td>
		</tr>
		<% end %>
		<%end%>
	</tbody>
</table>
<h4>Deltagare i projektet</h4>
<% @DevProjects.each do |dev| %>
<% dev.users.each do |user| %>
<ul>
	<li>
		<%= user.email%>
	</li>
</ul>
<% end %>
<% end %> <h2><%= link_to("Lägg till en Ticket", {:controller => "tickets", :action => "new" }) %></h2>
